package com.ruoyi.project.system.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.system.domain.dto.TodayReservationDTO;
import com.ruoyi.project.system.service.ITodayReservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * 当天预约记录控制器
 */
@RestController
@RequestMapping("/system/today-reservation")
public class TodayReservationController extends BaseController {

    @Autowired
    private ITodayReservationService todayReservationService;

    /**
     * 查询当天预约记录(resolve=0)
     * @return 当天预约记录列表
     */
    @GetMapping("/list")
    public AjaxResult list() {
        List<TodayReservationDTO> list = todayReservationService.getTodayReservations();
        return AjaxResult.success(list);
    }
}